//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-02A
TN_Widget.CreateTable([['Little Women','The Playhouse on Rodney Square','Wilmington, DE','Thursday','5/9/2024','8:00 PM','5760407','Little-Women-5-9-2024'],['Little Women','The Playhouse on Rodney Square','Wilmington, DE','Friday','5/10/2024','8:00 PM','5760408','Little-Women-5-10-2024'],['Little Women','The Playhouse on Rodney Square','Wilmington, DE','Saturday','5/11/2024','2:00 PM','5760409','Little-Women-5-11-2024'],['Little Women','The Playhouse on Rodney Square','Wilmington, DE','Saturday','5/11/2024','8:00 PM','5760411','Little-Women-5-11-2024'],['Little Women','The Playhouse on Rodney Square','Wilmington, DE','Sunday','5/12/2024','2:00 PM','5760410','Little-Women-5-12-2024'],['Amy Grant','The Playhouse on Rodney Square','Wilmington, DE','Saturday','5/18/2024','7:00 PM','6121285','Amy-Grant-5-18-2024'],['The Kat and Dave Show: David Foster & Katharine McPhee','The Playhouse on Rodney Square','Wilmington, DE','Sunday','5/19/2024','7:00 PM','5486336','The-Kat-and-Dave-Show--David-Foster---Katharine-McPhee-5-19-2024'],['Shrek The Musical','The Playhouse on Rodney Square','Wilmington, DE','Tuesday','6/4/2024','8:00 PM','6151781','Shrek-The-Musical-6-4-2024'],['Theresa Caputo','The Playhouse on Rodney Square','Wilmington, DE','Thursday','6/6/2024','7:30 PM','6358691','Theresa-Caputo-6-6-2024'],['Sutton Foster','The Playhouse on Rodney Square','Wilmington, DE','Saturday','11/2/2024','8:00 PM','6190920','Sutton-Foster-11-2-2024'],['Colin Jost','The Playhouse on Rodney Square','Wilmington, DE','Tuesday','4/22/2070','TBD','4326526','Colin-Jost-4-22-2070']],'DuPont Theatre','http://www.ticketnetwork.com/ticket/DuPont-Theatre-events.aspx');